package cn.yuitstyle.excel.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * @author yuwg
 */
@EqualsAndHashCode(callSuper = false)
@Data
public class ExcelException extends RuntimeException implements Serializable {

    private String code;


    public ExcelException(String msg) {
        super(msg);
    }

    public ExcelException(String code, String msg) {
        super(msg);
        this.code = code;
    }

    public ExcelException(String code, String msg, Throwable cause) {
        super(msg, cause);
        this.code = code;
    }


}
